from selenium.webdriver.common.by import By

from util.page_base import PageBase


class PageIndex(PageBase):
    path_url = "/"

    def __init__(self, driver, base_url):
        PageBase.__init__(self, driver, base_url)

    def open_index(self):
        self.open(PageIndex.path_url)

    def click_login(self):
        loc = By.CSS_SELECTOR, "a[href='/simple/login']"
        self.click(loc)
